package com.jingdianjichi.auth.domain.convert;

import com.jingdianjichi.auth.domain.entity.AuthUserBO;
import com.jingdianjichi.auth.infra.basic.entity.AuthUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthUserConverter {
    AuthUserConverter INSTANCE = Mappers.getMapper(AuthUserConverter.class);

    AuthUser convertBOToAuthUser(AuthUserBO authUserBO);

    List<AuthUser> convertBOToAuthUser(List<AuthUserBO> authUserBOList);

    AuthUserBO convertAuthUserToBO(AuthUser AuthUser);

    List<AuthUserBO> convertAuthUserToBO(List<AuthUser> AuthUserList);
}
